import request from '@/utils/request'

// 查询业务入账/出账流水列表
export function listFlow(query) {
  return request({
    url: '/bills/flow/list',
    method: 'get',
    params: query
  })
}
export function billFlowCount(query) {
  return request({
    url: '/bills/flow/billFlowCount',
    method: 'get',
    params: query
  })
}
export function billFlowCount1(query) {
  return request({
    url: '/bills/flow/billFlowCount1',
    method: 'get',
    params: query
  })
}
// 查询业务入账/出账流水详细
export function getFlow(id) {
  return request({
    url: '/bills/flow/' + id,
    method: 'get'
  })
}

// 新增业务入账/出账流水
export function addFlow(data) {
  return request({
    url: '/bills/flow',
    method: 'post',
    data: data
  })
}

// 修改业务入账/出账流水
export function updateFlow(data) {
  return request({
    url: '/bills/flow',
    method: 'put',
    data: data
  })
}

// 删除业务入账/出账流水
export function delFlow(id) {
  return request({
    url: '/bills/flow/' + id,
    method: 'delete'
  })
}

// 导出业务入账/出账流水
export function exportFlow(query) {
  return request({
    url: '/bills/flow/export',
    method: 'get',
    params: query
  })
}
